﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SystemContainer.Models;

namespace SystemContainer.Controllers
{
  
    public class DeveloperController : Controller
    {
        private SystemEntities systemDB = new SystemEntities();
        private DataProcessController dataController = new DataProcessController();
        private AreaOfInterestRecommendationController mapController = new AreaOfInterestRecommendationController();
        private VideoDisplayController videoController = new VideoDisplayController();
        //
        // GET: /Developer/

        public ActionResult Index()
        {
            return View();
        }
        public ActionResult DeveloperAlgorithmControl(string fieldName)
        {
           return  View(dataController.BrowseAlgorithm(fieldName));
        }

        public List<DataSet> DeveloperDBControl(int algorithmID)
            
        {
            return dataController.BrowseDataSet(algorithmID);
        }
        public ActionResult DeveloperMapControl(int algorithmID)
        {
           // List<DataSet> dataSet = DeveloperDBControl(algorithmID);
            ViewBag.AlgorithmName = systemDB.Algorithms.Find(algorithmID).Name;
            return View(mapController.ChooseLocation());
        }
        public ActionResult DeveloperVideoControl(int algorithmID)
        {
           // List<DataSet> dataSet = DeveloperDBControl(algorithmID);
            ViewBag.AlgorithmName = systemDB.Algorithms.Find(algorithmID).Name;
            return View();

        }


    }
}
